package com.melesta.engine;

import android.util.Log;
import com.flurry.android.FlurryAgent;
import java.io.PrintWriter;
import java.io.StringWriter;

public class Error
{
  protected static final String getStackTrace(Throwable paramThrowable)
  {
    StringWriter localStringWriter = new StringWriter();
    paramThrowable.printStackTrace(new PrintWriter(localStringWriter));
    return localStringWriter.toString();
  }

  public static void processException(Exception paramException)
  {
    processException(null, paramException);
  }

  public static void processException(String paramString, Exception paramException)
  {
    String str1;
    if (paramString == null)
      str1 = "error";
    try
    {
      while (true)
      {
        String str2 = getStackTrace(paramException);
        Log.e(str1, str2);
        FlurryAgent.onError(paramString, str2, "EngineActivity");
        return;
        str1 = paramString;
      }
    }
    catch (Exception localException)
    {
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.engine.Error
 * JD-Core Version:    0.6.2
 */